package com.hg.miaosha.service;

import com.hg.miaosha.common.util.PageUtils;
import com.hg.miaosha.dto.PageDTO; /**
 * created by skh on 2019/6/15
 */
public interface SeckillService {
	PageUtils getSeckillGoodsList(PageDTO pageDTO);

	void initData();

	Integer countSuccessSecKill();

	void startSeckill(Integer seckillId,Integer userId);

	void startWithSynchronized(Integer seckillId, Integer userId);

	void startWithLock(Integer seckillId, Integer userId);

	void startWithAOPLock(Integer seckillId, Integer userId);

	void startWithPessimisticLock(Integer seckillId, Integer userId);

	void startWithPessimisticLock2(Integer seckillId, Integer userId);

	void startWithOptimisticLock(Integer seckillId, Integer userId);

	void testRateLimit();

}
